package com.alex.server.service;

import com.alex.server.domain.CourseCategory;
import com.alex.server.dto.CategoryDto;
import com.alex.server.dto.CourseCategoryDto;
import com.alex.server.dto.PageDto;

import java.util.List;

/**
 * 课程分类service
 */
public interface ICourseCategoryService {
    PageDto list(PageDto pageDto);

    void save(CourseCategoryDto courseCategoryDto);

    void insert(CourseCategory courseCategory);

    void update(CourseCategory courseCategory);

    void delete(String id);

    void saveBatch(String courseId, List<CategoryDto> dtoList);

    List<CourseCategoryDto> listByCourse(String courseId);
}